/**
 * Created by CodeTlan.
 * User: Ing. Miguel Salas
 * Date: 3/19/12
 * Time: 2:44 AM
 */
Ext.define('CT.view.departamento.Form', {
    extend:'Ctc.view.Form',
    alias:"widget.formdepartamento",
    initComponent:function(){
        this.callParent(arguments);
    },
    buildItems:function(){
        return [{
            fieldLabel: 'Nombre',
            name: 'nombre'
        }];
    },
    buildButtons:function(){
        return [{
            text: 'Cancelar',
            handler: function() {
                this.up('form').getForm().reset();
            }
        }, {
            text: 'Enviar',
            formBind: true,
            disabled: true,
            action: 'add'
        }];
    }
});